package designPattern.behavioralPattern.mediator;

/**
 * @author wei.zhao
 * @description:
 * @date 2021年12月23日 13:38
 */
public class Test {
    public static void main(String[] args) {
        Colleague colleague1 = new ConcreteColleague1();
        Colleague colleague2 = new ConcreteColleague2();
        Mediator mediator = new ConcreteMediator();
        mediator.register(colleague1);
        mediator.register(colleague2);
        colleague1.send();
        colleague2.send();
    }
}
